package workflow.dto;

public class WorkflowProcess {
	
	private String name;
	
	private int version;
	
	private WorkflowProcessDefinition definition;

	
	public WorkflowProcess(String name, int version, WorkflowProcessDefinition definition) {
		super();
		this.name = name;
		this.version = version;
		this.definition = definition;
	}
	
	public String getName() {
		return name;
	}

	public int getVersion() {
		return version;
	}

	public WorkflowProcessDefinition getDefinition() {
		return definition;
	}

	public WorkflowProcess getCopy() {
		WorkflowProcess wp = new WorkflowProcess(this.name, this.version, definition.getCopy());
		return wp;
	}
}
